const packageName = require('./package.json').name;

module.exports = {
    lintOnSave:false,
    devServer: {
        port: 8085,
        overlay:{
            warning:false,
            errors:false
        },
        headers: {			// 重点1: 允许跨域访问子应用页面
            'Access-Control-Allow-Origin': '*',
        }
    },
    // 自定义webpack配置
    configureWebpack: {
        entry: './src/main.js',
        output: {
            library: `${packageName}`,
            libraryTarget: 'umd',
            jsonpFunction: `webpackJsonp_${packageName}`
          },
    },
};